package com.mycat.chat.two.util;

import javax.swing.*;

/**
 * 获取图片工具类
 *
 * @author roger.
 * @email 190642964@qq.com
 * @create 2017-02-16
 */
public class PictureUtil {

    public static ImageIcon getPicture(String name) {
        ImageIcon icon = new ImageIcon(PictureUtil.class.getClassLoader()
                .getResource("images/" + name));
        return icon;
    }

}
